/* 确认模态框样式 */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.confirm-container {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: confirmModalAppear 0.3s ease-out;
}

@keyframes confirmModalAppear {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confirm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #e8e8e8;
}

.confirm-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.confirm-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.3s;
}

.confirm-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.confirm-body {
  padding: 24px;
}

.confirm-message {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e8e8e8;
  background-color: #fafafa;
  border-radius: 0 0 8px 8px;
}

.confirm-cancel,
.confirm-ok {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.confirm-cancel {
  background-color: white;
  color: #333;
  border: 1px solid #d9d9d9;
}

.confirm-cancel:hover {
  border-color: #40a9ff;
  color: #40a9ff;
}

.confirm-ok {
  background-color: #ff4d4f;
  color: white;
}

.confirm-ok:hover {
  background-color: #ff7875;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .confirm-container {
    width: 95%;
    margin: 20px;
  }
  
  .confirm-header,
  .confirm-body,
  .confirm-footer {
    padding: 16px;
  }
  
  .confirm-footer {
    flex-direction: column;
  }
  
  .confirm-cancel,
  .confirm-ok {
    width: 100%;
  }
}